package com.cskaoyan.shopping.converter;

import com.cskaoyan.shopping.dal.entitys.Panel;
import com.cskaoyan.shopping.dal.entitys.PanelContent;
import com.cskaoyan.shopping.dal.entitys.PanelContentItem;
import com.cskaoyan.shopping.dto.PanelContentDto;
import com.cskaoyan.shopping.dto.PanelContentItemDto;
import com.cskaoyan.shopping.dto.PanelDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;



@Mapper(componentModel = "spring")
public interface PanelConverter {

    @Mappings({})
    PanelDto panel2PanelDto(Panel panel);

    @Mappings({})
    PanelContentItemDto panelContentItem2PanelContentItemDto(PanelContentItem panelContentItem);

    @Mappings({})
    List<PanelDto> panels2PanelDtos(List<Panel> panels);

    @Mappings({})
    PanelContentDto panelContent2PanelContentDto(PanelContent panelContent);

    @Mappings({})
    List<PanelContentDto> panelContents2PanelContentDtos(List<PanelContent> panelContents);
}
